//
//  MVSWebserviceOperation.h
//  MoltenCore
//
//  Created by Nicholas Bourey on 2/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MVSWebserviceBase.h"

@interface MVSWebserviceOperation : NSOperation {
@private
	NSURLRequest *request;
	MVSWebserviceBase *service;
	SEL selector;
	SEL serviceCallback;
	id<MVSWebserviceDelegate> client;
	SEL callbackSelector;
	
	NSMutableData *data;
	NSURLConnection *connection;
	
	// State //
	BOOL isExecuting;
	BOOL isFinished;
}

- (id)initWithURLRequest:(NSURLRequest *)aRequest service:(MVSWebserviceBase *)service selector:(SEL)aSelector client:(id<MVSWebserviceDelegate>)client callbackSelector:(SEL)callback;
- (id)initWithURLRequest:(NSURLRequest *)aRequest service:(MVSWebserviceBase *)aService selector:(SEL)aSelector serviceCallback:(SEL)aServiceCallback client:(id<MVSWebserviceDelegate>)aClient callbackSelector:(SEL)aCallback;
@end
